import request from '@/utils/request'

// 查询清理无流量任务列表
export function listTraffic(query) {
  return request({
    url: '/jihuo/traffic/list',
    method: 'get',
    params: query
  })
}

// 查询清理无流量任务详细
export function getTraffic(jhId) {
  return request({
    url: '/jihuo/traffic/' + jhId,
    method: 'get'
  })
}

// 新增清理无流量任务
export function addTraffic(data) {
  return request({
    url: '/jihuo/traffic',
    method: 'post',
    data: data
  })
}

// 修改清理无流量任务
export function updateTraffic(data) {
  return request({
    url: '/jihuo/traffic',
    method: 'put',
    data: data
  })
}

// 删除清理无流量任务
export function delTraffic(jhId) {
  return request({
    url: '/jihuo/traffic/' + jhId,
    method: 'delete'
  })
}
